package com.lijianan.service;

import com.lijianan.entity.User;

import java.util.List;

public interface UserService {
    boolean register(String account, String password, String name, String company_name, String phone_number);

    boolean login(String account, String password);

    User selectByAccount(String account);

    boolean modifyInfo(String account, String name, String company_name, String phone_number);

    boolean modifyRole(String account, String role);

    User selectByUserId(Integer userId);

    boolean changePassword(String account, String oldPassword, String newPassword);

    boolean changeStateToApprove(Integer user_id);

    boolean removeApproveState(Integer user_id);

    boolean changeStateToFrozen(Integer user_id);

    boolean removeFrozenState(Integer user_id);

    boolean logoff(Integer user_id);

    List<User> selectAll();
}
